<!DOCTYPE html>
<html>
<head lang="zh-CN">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="content-language" content="zh-CN" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="applicable-device" content="pc,mobile">
    <meta name="robots" content="all" />
    <meta name="save" content="history" />
    <title>{$GLOBALS['TS_SITE']['site_title']} - {$title}</title>
    <meta name="keywords" content="{$GLOBALS['TS_SITE'][site_key]}" />
    <meta name="description" content="{$GLOBALS['TS_SITE'][site_desc]}" />

    <link rel="shortcut icon" href="{SITE_URL}favicon.ico" />

    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="{SITE_URL}public/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="{SITE_URL}theme/sample/base.css" />


    <script>var siteUrl = '{SITE_URL}'; //网站网址</script>
    <script src="{SITE_URL}public/js/jquery.min.js" type="text/javascript"></script>

    <!--jquery向下兼容-->
    <script src="{SITE_URL}public/js/jquery-migrate.js" type="text/javascript"></script>

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="{SITE_URL}public/bootstrap/js/bootstrap.min.js"></script>

    <!--bootstrap 前端验证-->
    <script type="text/javascript" src="{SITE_URL}public/js/bootstrap3-validation.js"></script>

    {if $GLOBALS['TS_CF']['urllock']}
    <script type="text/javascript">
        var urllock="$GLOBALS['TS_CF']['urllock']";if(document.domain!=urllock){top.location.href=siteUrl;}
    </script>
    {/if}



</head>
<body class="pubs_home">



<div class="container">
    <div class="row">
        <div class="col-md-8">



                <h1 class="h2 mt-5 fw300">{$GLOBALS['TS_SITE']['site_title']}</h1>
                <div class="h1 fw300">{$title}</div>




        </div>
        <div class="col-md-4">




            <div class="pubs_home_login">

                <div class="pubs_home_login_bg"></div>


                <div class="pubs_home_login_form">

                
                    <div class="form-group">
                        <label class="text-light">账号</label>
                        <input name="email" type="text" class="form-control" placeholder="Email/手机号">
                    </div>
                    <div class="form-group">
                        <label class="text-light">密码</label>
                        <input name="pwd" type="password" class="form-control" placeholder="Password">
                    </div>



                    <input type="hidden" name="cktime" value="31536000">
                    <input type="hidden" name="token" value="{$_SESSION['token']}" />
                    <button type="submit" id="comm-submit" class="btn btn-info btn-block">登 录</button>


                    <a class="btn btn-link text-light" href="{tsUrl('user','register')}">注册帐号</a>
                    <a class="btn btn-link text-light" href="{tsUrl('user','forgetpwd')}">忘记密码</a>


               

                </div>


            </div>


            



        </div>
    </div>
</div>



<div class="container">
<div class="pubs_home_footer">
    <p>
        <a href="{tsUrl('home','info',array('id'=>'1'))}">关于我们</a> |
        <a href="{tsUrl('home','info',array('id'=>'2'))}">联系我们</a> |
        <a href="{tsUrl('home','info',array('id'=>'3'))}">用户条款</a> |
        <a href="{tsUrl('home','info',array('id'=>'4'))}">隐私申明</a> | 
        <a href="{tsUrl('home','info',array('id'=>'5'))}">加入我们</a>
    </p>
    <p>Copyright ©  {php echo date('Y')}   <a target="_blank" href="{SITE_URL}">{$TS_SITE[site_title]}</a> {$TS_SITE[site_icp]}</p>
    <p>
        Powered by <a target="_blank" class="softname" title="开源社区" href="{$GLOBALS['TS_CF'][info][url]}">{$GLOBALS['TS_CF'][info][name]}</a> {$GLOBALS['TS_CF'][info][version]}
    </p>
    <p><span style="font-size:0.83em;">Processed in {$GLOBALS['TS_CF']['runTime']} second(s)</span></p>
</div>
</div>






<script src="{SITE_URL}public/js/common.js" type="text/javascript"></script>

{php doAction('pub_footer')}



<!--{if $TS_SITE['is_vaptcha']}-->
<script src="https://v-cn.vaptcha.com/v3.js"></script>
<script>
vaptcha({
    vid: '{$TS_SITE[vaptcha_vid]}',// 验证单元id
    mode: 'invisible',// 显示类型 隐藏式
    scene: 0,// 场景值 默认0
    area: 'auto' //验证节点区域,默认 auto,可选值 auto,sea,na,cn
}).then(function (vaptchaObj) {

    obj = vaptchaObj; //将VAPTCHA验证实例保存到局部变量中

    vaptchaObj.listen("pass", function () {
        // 验证成功进行后续操作
        var email = $("input[name='email']").val();
        var pwd = $("input[name='pwd']").val();
        var cktime = $("input[name='cktime']").val();
        var jump = $("input[name='jump']").val();
        var token = $("input[name='token']").val();
        
        serverToken = vaptchaObj.getServerToken()

        var data = {
            email:email,
            pwd:pwd,
            cktime:cktime,
            jump:jump,
            token:token,
            vaptcha_token: serverToken.token,
            vaptcha_server: serverToken.server,
        };
        tsPost('index.php?app=user&ac=login&ts=do&js=1',data)
        vaptchaObj.reset(); //重置验证码
        
    });

    //关闭验证弹窗时触发
    vaptchaObj.listen("close", function () {
        //验证弹窗关闭触发
    });

})

$("#comm-submit").on("click", function () {

    var email = $("input[name='email']").val();
    var pwd = $("input[name='pwd']").val();

    if(email && pwd){
        //人机验证
        obj.validate();
    }else{
        tsNotice('账号和密码必须输入！');
    }

    
});
</script>

<!--{else}-->

<script>
    $("#comm-submit").on("click", function () {
        var email = $("input[name='email']").val();
        var pwd = $("input[name='pwd']").val();
        var cktime = $("input[name='cktime']").val();
        var jump = $("input[name='jump']").val();
        var token = $("input[name='token']").val();

        if(email && pwd){
            var data = {
                email:email,
                pwd:pwd,
                cktime:cktime,
                jump:jump,
                token:token,
            };
            tsPost('index.php?app=user&ac=login&ts=do&js=1',data)
        }else{
            tsNotice('账号和密码必须输入！');
        }
    
    });
</script>

<!--{/if}-->


</body>
</html>